package xs.szw.service.model.pojo.sys;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 操作日志记录
 * @author asus
 * @TableName sys_oper_log
 */
@Schema(description = "操作日志记录")
@TableName(value ="sys_oper_log")
@Data
public class OperLog implements Serializable {
    /**
     * 日志主键
     */
    @Schema(description = "日志主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 模块标题
     */
    @Schema(description = "模块标题")
    @TableField(value = "title")
    private String title;

    /**
     * 业务类型（0其它 1新增 2修改 3删除）
     */
    @Schema(description = "业务类型（0其它 1新增 2修改 3删除）")
    @TableField(value = "business_type")
    private String businessType;

    /**
     * 方法名称
     */
    @Schema(description = "方法名称")
    @TableField(value = "method")
    private String method;

    /**
     * 请求方式
     */
    @Schema(description = "请求方式")
    @TableField(value = "request_method")
    private String requestMethod;

    /**
     * 操作类别（0其它 1后台用户 2手机端用户）
     */
    @Schema(description = "操作类别（0其它 1后台用户 2手机端用户）")
    @TableField(value = "operator_type")
    private String operatorType;

    /**
     * 操作人员
     */
    @Schema(description = "操作人员")
    @TableField(value = "oper_name")
    private String operName;

    /**
     * 部门名称
     */
    @Schema(description = "部门名称")
    @TableField(value = "dept_name")
    private String deptName;

    /**
     * 请求URL
     */
    @Schema(description = "请求URL")
    @TableField(value = "oper_url")
    private String operUrl;

    /**
     * 主机地址
     */
    @Schema(description = "主机地址")
    @TableField(value = "oper_ip")
    private String operIp;

    /**
     * 请求参数
     */
    @Schema(description = "请求参数")
    @TableField(value = "oper_param")
    private String operParam;

    /**
     * 返回参数
     */
    @Schema(description = "返回参数")
    @TableField(value = "json_result")
    private String jsonResult;

    /**
     * 操作状态（0正常 1异常）
     */
    @Schema(description = "操作状态（0正常 1异常）")
    @TableField(value = "status")
    private Integer status;

    /**
     * 错误消息
     */
    @Schema(description = "错误消息")
    @TableField(value = "error_msg")
    private String errorMsg;

    /**
     * 操作时间
     */
    @Schema(description = "操作时间")
    @TableField(value = "oper_time")
    private Date operTime;

    /**
     * 
     */
    @Schema(description = "")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @Schema(description = "")
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 删除标记（0:不可用 1:可用）
     */
    @Schema(description = "删除标记（0:不可用 1:可用）")
    @TableField(value = "is_deleted")
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}